package xyz.renyumeng.xkm.client.user;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.renyumeng.xkm.model.user.UserInfo;

/**
 * @author renyumeng
 * @date Created in 14:57 2023/6/30
 */

@RestController
@FeignClient(
        value = "service-user",
//        configuration = FeignConfig.class,
        contextId = "userInfo"
)
@RequestMapping("/admin/user/user-info/inner")
public interface UserInfoFeignClient {
    @GetMapping("/{id}")
    UserInfo innerGetUserByIdWithAddressInfo(@PathVariable Long id);
}
